/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description:
 */
package com.lzq.mediator.improved;

public class Client {
    public static void main(String[] args) {
        ConcreteMediator mediator = new ConcreteMediator();
        Alarm alarm = new Alarm(mediator,"alarm");
        Coff coff = new Coff(mediator,"coff");
        TV tv = new TV(mediator,"tv");
        alarm.sendMessage(0);
    }
}
